package com.ruyuan.twelve.juc._26;


import java.util.concurrent.ScheduledThreadPoolExecutor;

public class Test {
    public static void main(String[] args) {

        Servant proxy = (Servant) ProxyFactory.newInstance(Servant.class,new ScheduledThreadPoolExecutor(10),new MsgServant());
        proxy.execute();
        //线程池不关闭，程序不会结束
        ExecutorManager.closeAll();
    }
}
